<?php

namespace App\Models\Admin\Framework;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;

class AdminUsersModel extends Authenticatable
{
    use HasFactory;

    protected $table = 'admin_users';
    public $timestamps = false;

    protected $fillable = [
        'account', 'password',
    ];

    protected $hidden = [
        //remember_token 字段用于记住我的功能
        'password', 'remember_token',
    ];

    public static $rules = [
        'account'=>'required',
        'password'=>'required'
    ];

}
